package gx.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import gx.dao.CustomerDao;
import gx.entity.Customer;
import gx.entity.common.Page;
import gx.service.common.BaseService;

@Service
public class CustomerService extends BaseService<Customer> {
	private CustomerDao customerDao;

	public CustomerDao getCustomerDao() {
		return customerDao;
	}

	@Autowired
	public void setCustomerDao(CustomerDao customerDao) {
		this.customerDao = customerDao;
		super.setDao(this.customerDao);
	}

	public Page<Customer> findByName(int size, int number, String lname) {
		return customerDao.findByName(size,number,lname);
	}
	

}
